package com.webas.api.service;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

import com.webas.api.entity.Entity;

public class ServiceProxy<K extends Entity<?>>
	extends	GenericService<K>
	implements InvocationHandler
{
	
	ServiceProxy(Class<? extends Entity<?>> entityType) {
		super(entityType);
	}
	
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

		return method.invoke(this, args);
	}
	
	@Override
	public void delete(K entity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	K getDao() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void onSave() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onDelete() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getDescription() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setDescription(String description) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getIdentifier() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Class<K> getType() {
		// TODO Auto-generated method stub
		return null;
	}
	
}
